﻿using Service.Core.Redis.Aop.Cache;
using Service.Framework;
using Service.Gateway.Domain.Model;

namespace Service.Gateway.Application.Service;

public interface IGatewayService : IScopedService
{
    [RedisCacheInterceptor($"{nameof(IGatewayService)}:{nameof(QueryApiGatewayList)}", cacheDuration: 1000 * 60 * 60 * 12)]
    Task<List<ApiGatewayDto>> QueryApiGatewayList();

    Task<ApiGatewayDto> QueryApiGatewayById(long routeId);
}